package com.qzimp.fujiancuo.mapper;

import com.mybatisflex.core.BaseMapper;
import com.qzimp.fujiancuo.entity.Legend;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *  映射层。
 *
 */
public interface LegendMapper extends BaseMapper<Legend> {

    List<Legend> selectLegendsByLegendIds(@Param("legendIds") List<Integer> legendIds);

    @Select("SELECT * FROM tb_legend WHERE personages LIKE CONCAT('%', #{searchKeyword}, '%')")
    Legend selectOneByPersonages(String name);
}
